<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="module">
    import Promise from "./index.js";
    // then返回的是一个新的Promise实例
    const p = new Promise(function(resolve,reject){
		resolve(100);
		reject(200);
		throw "异常";
    });
	const p2 = p.then(function(value){
		console.log("成功回调",value)
    },function(reason){
		console.log("失败回调",reason)
    });
	console.log(p2);

</script>
</html>